package com.dao;

import com.util.PageUtil;

import java.sql.SQLException;
import java.util.List;

public interface Dao<T> {

    public int insert(T t) throws SQLException;

    public List<T> queryData(T t) throws IllegalAccessException, SQLException, InstantiationException;

    public  int update(T t) throws  SQLException;

    public int deleteById(Object id) throws SQLException;


    public PageUtil<T> queryDataBypage(int currentPgae,int pageSize,T t) throws IllegalAccessException, SQLException, InstantiationException;

}
